package com.woniu.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author Kevin Kwok
 * @create 2021-04-15 18:52
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("e_order")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 买家ID
     */
    private Integer uid;

    /**
     * 商品ID
     */
    private Integer pid;
    /**
     *拍卖记录id
     */
    private Integer recId;

    /**
     * 成交价格
     */
    private BigDecimal price;

    /**
     * 订单状态
     */
    private Integer orderStatus;

    /**
     * 订单成交时间
     */
    private Date deadline;

    /**
     * 审核状态
     */
    private Integer checkedStatus;

    /**
     * 开拍时间
     */
    private Date auctionBeginTime;

    /**
     * 拍卖时间
     */
    private Integer result;

    /**
     * 添加时间
     */
    private String tradeType;

    /**
     * 记录添加时间
     */
    private Date rawAddTime;

    /**
     * 记录更新时间
     */
    private Date rawUpdateTime;


}
